package com.crpc.common.crpcEnum;

/**
 * @author wzy
 * @version 1.0
 * @description: 枚举类 用来标记请求类型
 * @date 2023/9/28 23:26
 */
public enum RequestType {
    //普通请求
    REQUEST((byte) 1, "普通请求"),
    //心跳检测
    HEART_BEAT((byte) 2, "心跳请求");

    private byte id;
    private String type;

    RequestType(byte id, String type) {
        this.id = id;
        this.type = type;
    }

    public byte getId() {
        return id;
    }

    public String getType() {
        return type;
    }
}
